#include "GameModel.h"

GameModel::GameModel(GameControl* control)
	:gameControl(control)
{
}


GameModel::~GameModel(void)
{
}

void GameModel::step(double time)
{
	// get the Move data through gameControl
	// eg gameControl->getMoveOrientation(0);

	// step all objects
	for (int i = 0; i<gameObjects.size(); ++i)
	{
		gameObjects[i]->step(time);
	}
}

std::vector<GameObject*> GameModel::getObjects()
{
	return gameObjects;
}